package com.uplooking.proxy;

import java.lang.reflect.Method;

import org.springframework.aop.AfterReturningAdvice;
import org.springframework.stereotype.Component;

@Component("AfterAdv")
public class AfterAdv  implements AfterReturningAdvice{
     
	/**
	* @param returnValue
	*             被代理类方法的返回值
	* @param method
	*             被代理类方法
	* @param args
	*             被代理类方法参数
	* @param target
	*            代理对象
	*/
	@Override
	public void afterReturning(Object returnValue, Method method, Object[] args, Object target) throws Throwable {
		System.out.println("4S店卖玩手机之后要做售后！");
		//System.out.println(returnValue+"   "+args);
	}

}
